package com.ly.common.running.service;

import com.ly.common.running.impl.IFlow;
import com.ly.common.running.model.BaseInOut;
import org.springframework.stereotype.Service;

/**
 * @author luoyana
 * @version V1.0
 * @ClassName FlowHandle
 * @description
 * @update 2023/6/8
 */
@Service
public abstract class FlowHandle<In extends BaseInOut,Out extends BaseInOut> implements IFlow<In,Out> {
    @Override
    public Out handle(String beanName, In request, Class<Out> aClass) {
        return this.execute(request);
    }
    public abstract Out execute(In request);
}
